import request from '@/utils/request'

// 查询冰柜资产列表
export function listContainerAsset(query) {
  return request({
    url: '/genius/platform-container-asset/list',
    method: 'get',
    params: query
  })
}

// 查询冰柜资产详情
export function getContainerAssetDetail(id) {
  return request({
    url: '/genius/platform-container-asset/' + id,
    method: 'get'
  })
}
//冰柜资产绑定设备
export function bindContainerAsset(data) {
    return request({
      url: '/genius/platform-container-asset/bind-device',
      method: 'post',
      params: data,
      data
    })
  }

// 新增冰柜资产
export function addContainerAsset(data) {
  return request({
    url: '/genius/platform-container-asset',
    method: 'post',
    data: data
  })
}

// 修改冰柜资产
export function updateContainerAsset(data) {
  return request({
    url: '/genius/platform-container-asset',
    method: 'put',
    data: data
  })
}
// 导出冰柜资产
export function exportContainerAsset(data) {
  return request({
    url: '/genius/platform-container-asset/export',
    method: 'post',
    data: data
  })
}

// 逻辑删除冰柜资产
export function delContainerAsset(ids) {
  return request({
    url: '/genius/platform-container-asset/' + ids   ,
    method: 'delete'
  })
}
